import { Color3 } from '@babylonjs/core/Maths/math.color';
import { ValueData } from '../base-data';

/**
 * RGB颜色类型数据
 */
class Color3Data extends ValueData<Color3>{

    protected generate(from: Color3): Color3 {
        return new Color3().copyFrom(from);
    }

    protected equal(a: Color3, b: Color3): boolean {
        return a.r === b.r && a.g === b.g && a.b === b.b;
    }

    protected copy(targetContainer: Color3[], source: Color3): void {
        targetContainer[0].copyFrom(source);
    }

}


export { Color3Data };